import request from '@/utils/request'
/* 列表闪屏 */
export function listSplashScreen (data) {
  return request({
    url: 'banner_manage/listSplashScreen',
    method: 'post',
    params: data
  })
}
/* 新增闪屏 */
export const insertSplashScreen = data => {
  return request({
    url: 'banner_manage/insertSplashScreen',
    method: 'post',
    data: data
  })
}
/* 新增banner */
export const insertBanner = data => {
  return request({
    url: '/banner_manage/insertBanner',
    method: 'post',
    data: data
  })
}
/* 闪屏 banner 编辑 */
export const updateBanner = data => {
  return request({
    url: 'banner_manage/updateBanner',
    method: 'post',
    data: data
  })
}
/* 删除闪屏广告/bannerlsit */
export const deleteBanner = data => {
  return request({
    url: '/banner_manage/deleteBanner',
    method: 'post',
    params: data
  })
}
/* banner */
export function listBanner (data) {
  return request({
    url: 'banner_manage/listBanner',
    method: 'post',
    params: data
  })
}
/* banner排序 */
export const changeBannerSort = data => {
  return request({
    url: 'banner_manage/changeBannerSort',
    method: 'post',
    params: data
  })
}
/* 批量删除 广告位/banner排序 */
export const batchDeleteBanner = data => {
  return request({
    url: 'banner_manage/batchDeleteBanner',
    method: 'post',
    params: data
  })
}
